<?php
class Model_StudentMessageSendList extends CCMIS_Model {
    //Database student_message_send_list
    public function __construct(){
        parent::__construct();

        $this->load->database();
    }

    public function add($sendListID, $studentMemberID)
    {
        $sql = 'INSERT INTO `student_message_send_list`(
        `StudentMessageSendListID`,
        `StudentMemberSendTo`
        )
        VALUES (?, ?)';

        $this->db->query($sql, array($sendListID, $studentMemberID));

        return $this->db->insert_id();
    }

}